package com.example.kaogong.sys.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 课程讨论
 * </p>
 *
 * @author    
 * @since 2022-03-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_course_comment")
@ApiModel(value="CourseComment对象", description="课程讨论")
public class CourseComment implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "讨论编号")
    @TableId(value = "comment_id", type = IdType.AUTO)
    private Integer commentId;

    @ApiModelProperty(value = "评论用户编号")
    private Integer uid;

    @ApiModelProperty(value = "课程编号", required = true)
    private Integer courseId;

    @ApiModelProperty(value = "内容", required = true)
    private String content;

    @ApiModelProperty(value = "回复编号", notes = "哪条讨论下的评论（最顶级讨论的编号）")
    private Integer replyId;

    @ApiModelProperty(value = "评论者编号", notes = "指明对哪个用户进行回复")
    private Integer targetId;

    @ApiModelProperty(value = "发表时间")
    private LocalDateTime postTime;

    @ApiModelProperty(value = "点赞数")
    private Integer like;

}
